package com.echo.im.common.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

/**
 * @author: echo
 * @time: 2024-08-15
 */
@Data
public abstract class MessageVO {

    @Schema(description = " 消息id")
    protected Long id;

    @Schema(description = "消息内容类型 MessageType")
    private Integer type;
    /**
     * seq_id
     */
    private Long seqId;

    @Schema(description = " 发送内容")
    private String content;

    @Schema(description = " 发送者id")
    protected Long sendId;

    @Schema(description = " 发送时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sendTime;

    @Schema(description = " 状态 MessageStatus")
    private Integer status;
}
